package org.example.service.impl;

import org.example.entity.User;
import org.example.mapper.UserMapper;
import org.example.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public void insert(User user) {
        userMapper.insert(user);
    }

    @Override
    public void update(User user) {
        userMapper.update(user);
    }

    @Override
    public void delect(int id) {
        userMapper.delect(id);
    }

    @Override
    public List<User> select() {
        return (List<User>) userMapper.select();
    }

    @Override
    public User selectGebyid(int id) {
        return userMapper.selectGebyid(id);
    }

    @Override
    public User getId66(int id) {
        return userMapper.getId66(id);
    }
}
